<?php
namespace app\model;

use think\Model;

class Demo extends Model{
	public function getStatusTexAttr($value, $Data){
		$status = [
			0 =>'待审核',
			1 =>'正常',
			99 =>'删除',
		];

		return $status[$data['status']];
	}
}